Skip to content

Fix Recent Trips Actions #1369

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 7, 2025
Merged

Fix Recent Trips Actions #1369

merged 6 commits into from
Apr 7, 2025

Conversation

binh-dam-ibigroup
Copy link
Collaborator

@binh-dam-ibigroup binh-dam-ibigroup commented Mar 20, 2025

Description

This PR addresses incorrect behavior when clicking a recent search:

  • The modes will be the current selection of the mode selector
  • The date/time will be displayed correctly (instead of e.g. 'Yesterday, Leave Now')

PR Checklist:

  • Does the code follow accessibility standards (WCAG 2.1 AA Compliant)?
  • Are all languages supported (Internationalization/Localization)?
  • Are appropriate Typescript types implemented?

Copy link
Contributor

@amy-corson-ibigroup amy-corson-ibigroup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really good, just an idea to make the user experience a little smoother. Thank you for the changes!

Comment on lines 343 to 345
if (queryWithoutModes.departArrive === 'NOW') {
queryWithoutModes.departArrive = 'DEPART'
}
Copy link
Contributor

@amy-corson-ibigroup amy-corson-ibigroup Mar 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just an idea, but instead of populating the d/t selector to reflect the time the trip was originally planned, could we set the d/t selector by default to "today/leave now"? Or even avoid changing the d/t selector? I think in most cases the user is going to be trying to re-plan the trip for a time in the future versus look at results for a time that's in the past

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. User is most likely trying to plan the same trip again but now. Should we have it set to "leave now" instead?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That might be out of the scope of this PR though?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

826d860 leaves the settings of the date time selector as they were prior to selecting the recent search entry, let me know what you think @amy-corson-ibigroup and @miles-grant-ibigroup

Copy link
Collaborator

@miles-grant-ibigroup miles-grant-ibigroup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good, but agree with Amy that we should maybe review this behavior

Comment on lines 343 to 345
if (queryWithoutModes.departArrive === 'NOW') {
queryWithoutModes.departArrive = 'DEPART'
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. User is most likely trying to plan the same trip again but now. Should we have it set to "leave now" instead?

Comment on lines 343 to 345
if (queryWithoutModes.departArrive === 'NOW') {
queryWithoutModes.departArrive = 'DEPART'
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That might be out of the scope of this PR though?

Copy link
Collaborator

@miles-grant-ibigroup miles-grant-ibigroup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we're good to go!

@miles-grant-ibigroup miles-grant-ibigroup removed their assignment Apr 4, 2025
Copy link
Contributor

@amy-corson-ibigroup amy-corson-ibigroup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you for the changes!

@amy-corson-ibigroup amy-corson-ibigroup removed their assignment Apr 6, 2025
@binh-dam-ibigroup binh-dam-ibigroup merged commit 5dac286 into dev Apr 7, 2025
9 checks passed
@binh-dam-ibigroup binh-dam-ibigroup deleted the fix-recent-trips-actions branch April 7, 2025 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants